Path-finding for Ghosts

Implemented the path-finding algorithm for the ghosts and added the cage
as a central communication unit for them.