PHP tennis refactoring kata