Added endgame bool to tableflip

I haven't fully implemented it yet