public void applyGravity(List<GameObject> nearby) {
		boolean[] surroundings = checkSurroundings(nearby);
		// array[0] = north, surroundings[1] = south, surroundings[2] = east, surroundings[3] = west
		boolean north = surroundings[0];
		boolean south = surroundings[1];
		boolean east = surroundings[2];
		boolean west = surroundings[3];


		grounded = south;
		if (!grounded && !movement.atTerminalVelocity()) {
			movement = movement.add(Constants.GRAVITY_VECTOR);
		}

		if (!grounded){

			//System.out.println( "movement.x() > 0 " + (movement.x() > 0) + " ||| east " + east + " ||| movement.y() <= 0 " + (movement.y() <= 0));
			//System.out.println(movement);
			if (movement.x() > 0 && east){
				movement.setY(4);
				movement.setX(0);
			}
			else if (movement.x() < 0 && west){
				movement.setY(4);
				movement.setX(0);
			}
			else if ( (movement.y() < 0)&&(north)){
				movement.setY(0);
			}
		}

	}