game end conditions
adding some unit tests
maybe unbeatable ai