private void behaviour(){
        if(playerState == 0){
            //like the defender and goalie behaviour, turns to face the ball in place
            turnTowardBall();
            //the the player moves to intercept the ball if the ball gets to a certain distance away from the player
            if(distanceBall <= REACTION_DISTANCE) playerState = 1;
        }
        if(playerState == 1){             
            dribbleTowardOtherGoal(); //the player dribbles the ball towards the goal and passes it to the nearest players
            //the state changes when the player moves too far away from his default position
            if(distanceOwnGoal > HOME_DISTANCE + REACTION_DISTANCE) playerState = 2;
        }
        if(playerState == 2){
            //the player moves to the default position
            returnHome();
            //the player returns to the idle state when he is at the default position
            if(distanceOwnGoal <= HOME_DISTANCE) playerState = 0;
        }
    }