Update all HW2

scanner.close()
Rain Algorithm.