Added boolean for player movement