Fixed attachment bugs

Fixed so that the feet detach on "left click" whenever it can't attach
to another surface. Also fixed the bug where the head and feet attach
when the feet attaches to the wall. Added a function to Player to get
the wall that the feet "supposedly"are attached to.