solve pizza bug