fixing player movement