Updates to main loop and chess engine