game server modules and useful algorithm.