working on main, TODO: make draw offering and resignation + stalemate finish