Adding code for moving player right , left, and relase.