Added ghost eating logic