remove ghost func fix
function killGhost(nextLocation) { var ghostIdx = getGhostIdxByLocation(nextLocation); // in case this is giving the current ghost id // Removing ghost from array gGhosts.pop(ghostIdx) // increasing dead ghost counter. gGame.deadGhosts++; }