Rewrote perimeter function to let it read perimeter from file, didn't
debug