Implemented update and isWin to calculate when game is over
eon cleanup