private void passOn(){
        //loop that finds all the enemy players that are less than 10 away from this player
        ArrayList<PlayerData> closestEnemies = new ArrayList();
        for(PlayerData e : visibleOtherPlayers){
            if(e.getDistanceTo() < 10) closestEnemies.add(e);
        } 
        if(closestEnemies.size() >= 4) getPlayer().kick(70, getNearFarPlayers(visibleOwnPlayers).getRight().getDirectionTo()); // if there are more than 4 enemies around the player then kick the ball hard to the furthest player from this player
        else getPlayer().kick(30, getNearFarPlayers(visibleOwnPlayers).getLeft().getDirectionTo()); // else pass the ball lightly towards the closest friendsly player
    }