Fixed gui.
Added method to recognize if there is the base in the current position
of the agent.