Fix a rounding bug in player movement