Added code so that the king absolutely can not move into check, also
added code to flash when king is in check or check mate.