Check out check and move conditions

Implemented methods for checking if king is in check and for checking if
current player has a figure left, that is able to move. Still needs some
work but the skeleton is ready.