public void renderPlayer (int xPos, int yPos, Sprite sprite) {
		xPos -= xOffset;
		yPos -= yOffset;
		
		for (int y = 0; y < 16; y++) {
			int yAbs = y + yPos;
			
			for (int x = 0; x < 16; x++) {
				int xAbs = x + xPos;
				
				if(xAbs < -16 || xAbs >= width || yAbs < 0 || yAbs >= height) break;
				if(xAbs < 0) xAbs = 0;
				
				int colour = sprite.pixels[x + y * 16];
				if(colour != 0xffFF00FF) pixels[xAbs + yAbs * width] = colour;
			}
		}
	}