public boolean validate() {
		for(int i = 0; i < segments.size(); i++) {
			int posx = segments.get(i).posx;
			int posy = segments.get(i).posy;
			
			if((posx < 0) || (posx >= Game.sizex) || (posy < 0) || (posy >= Game.sizey)) {
				return false;
			}
			
			for(int j = i+1; j < segments.size(); j++) {
				if((segments.get(i).posx == segments.get(j).posx) && (segments.get(i).posy == segments.get(j).posy)) {
					return false;
				}
			}
		}
		
		return true;
	}