public void followBall() {


		try {
			if(!getMem().isObjVisible("ball")) {
				turn(45);
				return;
			}
			if(getMem().isObjVisible("ball")) {
				ObjBall ball = getMem().getBall();

				if((ball.getDirection() > 5.0) || (ball.getDirection() < -5.0)) {
					turn(ball.getDirection() * (1 + (5 * getMem().getAmountOfSpeed())));
				}
				if(ballInGoalzone(ball)){
					//System.out.println("flag in defendGoal");
					defendGoal(ball);
				} else {
					//System.out.println("flag in positionGoalie");
					positionGoalie(ball);
				}
			}

		} catch (UnknownHostException e) {
			System.out.println("Error in Goalie.followBall()");
			e.printStackTrace();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}