Moved the player code from the world class to the main class.
Added more comments.