• You've got an erroneous line with '177' half way down the code you posted.