refactoring; websockets configured for online game