Game doesn't close on end

You can run game and on win it says if you are winner or loser and does
not close. To Do:
rotate
opaque pieces
play without server
ryan database stuff for users