refactoring, parameters for player are on the top