moved matrices to CPU and built support for full screen