Znumbers Puzzle Game

Your goal is to move every box once and turn it grey.
Boxes may only be moved to a free spot by the number of spaces shown (1 to 4), marked by an X.