Refactored TargetAction to work better with parent class. AI in JavaFX.