Added powerup AI code