Added CardBuffer. Fixed GL setup.