Fixed ending to program, can't continue when hits end