created a makefile that works and compiles; albeit this program does not work correctly still due to the previewPiece function and other problems