Alerts working and checkmate detection seems to work better