public Coordinates getNextAttack(boolean lastDidHit) throws CloneNotSupportedException {
            Coordinates nextToHit = new Coordinates();

            //next direction
            if (lastDidHit == false) {
                // reset
                lasthit = new Coordinates(origin.getX(), origin.getY());
                direction++;

            }
            
            do {
                nextToHit = getNextCoordinates();
                if(direction != -1&& nextToHit == null)
                {
                 direction++;
                // reset
                lasthit = new Coordinates(origin.getX(), origin.getY());
                }
            }
            while(nextToHit == null && direction != -1);
            

            return nextToHit;
        }