Movement fix and added comments

- Fixed the movement of the player
- Added comments to the code