converted canJump method to field with event