main now checks for underflow or overflow, in which case fills screen black and prints text saying game over, and waits for a mousedown to exit