added Entity interface with Ball instance for testing