Refactored module "game". Tests has been separated.