Added powerup and ghostdeath logic, powerup counter, fixed still standing ghosts and added out of bounds check.