Beginning of more complex VGA functionality (currently broken)