Refactored module "player". Tests has been separated.