Adding server endofgame (WIP)