Added method to king class for isLegalJump(int position)