Sorry not very good at explaining. I want to get my lives counter to add -1, or decrease 1, every time a greep has reached the end the the path which would be coordinates 599(x),140(y), but when it does there is a null pointer exception. I imported the counter btw.
java.lang.NullPointerException
at Greeps.movement(Greeps.java:93)
at Small.act(Small.java:25)
at greenfoot.core.Simulation.actActor(Simulation.java:568)
at greenfoot.core.Simulation.runOneLoop(Simulation.java:526)
at greenfoot.core.Simulation.runContent(Simulation.java:215)
at greenfoot.core.Simulation.run(Simulation.java:205)
