src/main/java/cursor/rybak/model/team/Team.java
/**
     * Actions when move right or straight
     *
     * @param line            line
     * @param currentLocation current location
     * @param team            team
     * @return new location
     */
Actions when move right or straight
@param line            line
@param currentLocation current location
@param team            team
@return new location
Actions when move right or straight @param line line @param currentLocation current location @param team team @return new location
private Location rightOrStraightMove(List<Location> line,
                                         Location currentLocation,
                                         Team team) {
        int index = getLocationIndex(line);
        Location newLocation = line.get(index);
        return setNewLocation(currentLocation, newLocation, team);
    }
private Location rightOrStraightMove ( List < Location > line , Location currentLocation , Team team ) { int index = getLocationIndex ( line ) ; Location newLocation = line . get ( index ) ; return setNewLocation ( currentLocation , newLocation , team ) ; }
Actions when move right or straight
 @param line            line
 @param currentLocation current location
 @param team            team
 @return new location
Actions when move right or straight @param line line @param currentLocation current location @param team team @return new location