private static boolean hasNeighbors(Point p, Node.Type t, GameState game) {
		for(Obstacle o : game.obstacles) {
			Rectangle rec = new Rectangle(o.topLeft, new Dimension(50, 50));
			if(t != Node.Type.TOP_LEFT) {
				if(rec.contains(new Point(p.x + 1, p.y + 1))) {
					return true;
				}
			}
			if(t != Node.Type.TOP_RIGHT) {
				if(rec.contains(new Point(p.x - 1, p.y + 1))) {
					return true;
				}
			}
			if(t != Node.Type.BOTTOM_LEFT) {
				if(rec.contains(new Point(p.x + 1, p.y - 1))) {
					return true;
				}
			}
			if(t != Node.Type.BOTTOM_RIGHT) {
				if(rec.contains(new Point(p.x - 1, p.y - 1))) {
					return true;
				}
			}
		}
		return false;
	}