Abstracted triangles out creating a square class. Fixed a logic error in PVM.