Added code for blocking paths leading to a dead end and implemented
removing an ant when exit has been reached.