[TASK]goalkeeper AI, part I:refactor Goal Keeper code