private boolean collision() {
		for(Platform p : level.platforms) {
			if(p != null) {
				
				int left = x + 11;
				int right = x + 21;
				
				if(right >= p.x && left <= p.x + p.getPixelWidth()) {
					
					if(y >= p.y-3 && y <= p.y + p.getPixelHeight()) {
						y = p.y;
						return true;
					}
				}
			}
		}
		return false;
	}