Added code to draw ghosts