Mad Maxer confusing me!

I think it is a solution since this code works for you and you passed the level.