added check for walls. removed prediction timer because it was too literal. added code to create output file