Completed deck handling, and added references to socket for teams and games