bug in player movement fixed