you say flopping around could you select any gears? was it in a gear and not coming out of gear?
if you can select gears i would take a guess at the springs that center the gear stick if you cant then i would suspect the selector or gearbox to be damaged in some way im sure with a little more...