fixed websocket to switch between ws and wss depending on used protocol. Fixed bug when cookie in single player isn't set. Added finish page