Added mouse input and fixed triangle rendering, now loops for each triangle