Fixed bug that made the player walk by itself

Improved ground detection