Added mechanics of player movement.