define legal move for a king (still need to define castling)