polar bear panic demo day

Do the numbers 300, 500, 600, 1000 have meaning? Their repeated occurrence suggests so. Think about defining constants for them. If you need to make changes later it will be more straightforward. Constants also make the code more self-documenting and legible.