the error was because of the deadFromStarvation() which somehow makes the all the bacteria die. I believe the problem is an error in the condition so I am printing the condition on screen