Refactor code of result single player