Fixed bug in player movement