Screen glitch fixed, now it uses a color table, code clean up