fixed a logical bug with the ghost killing

ghosts now die correctly