modulerize backend
refactor inGame actions
add util classes for socket