changed GameObject and Enemy to Dependency Injection