refactor inGame actions
add util classes for socket