Is this a bug or cheating?

A little confused