fix colors array access (taken from go-vnc's method of colours)
Begin work on comparison API