It is not allowed to make a move where you own King is set in check
Thought about iterating over all pieces for the other colour and check if it is a valid move to take the king if the piece has moved. If the move is valid, then the initial move is not valid. Should raise an exception.