Adds check and checkmate to complete chess functionality.