Fixed some issues with player movement