added code that allow player to jump when spacbar is press. also set a gravity variable that controls the rate at which the main character falls once in the air