Minor Edit: Adding checkKing function to player class

checkKing function will check the position of the king and sees if it is
check. If the King could escape, it is check. If the King could not
escape, it is checkmated. Note that this will apply to prevent the
player's own King from getting itself into a check or a mate.