CHG: logic for player movement added