Fixed bug with player movement