simple endgame event checker

Signed-off-by: Alexander Skjolden <alex@plastboks.net>