Ninja logic