Refactored VGA some to make it more moduler