Adding socket io game logic