public void printScreen(byte[] screen, int width){
		int bytesPerLine = width/8;
		int height = screen.length / bytesPerLine;
		
		for(int i = 0; i < height; i++){
			//print each line;
			int startByteIndex = i*bytesPerLine;
			int endByteIndex = startByteIndex + bytesPerLine-1;
			for(int j = startByteIndex; j<=endByteIndex; j++){
				//print each byte;
				String s = String.format("%8s", Integer.toBinaryString(screen[j])).replace(' ', '0');
				System.out.print(s);
			}
			System.out.println();
		}
	}