changed events() in player character to control speed