refactoring map and players module to handle socket and http