Functional isLegalMove and isInCheck

Added and fixed more game logic. Game now works to some extent. Still no
castling or checkmate.