using classes for player and ball