started to implement the end game.
game currently not working but will fix unless tim does it