Imagine that you are in the centre of a cube of cake with a known size. In order to move you must eat the surrounding cake but you can only move within the restraints of the six obvious directions $(x+1,x-1,y+1,y-1,z+1,z-1)$.
The puzzle is- can you eat the entire cake in such a fashion without overlapping parts of the cake which you have already eaten.
I would actually like to answer this question for a practical purpose and I have put much thought into it. From what I understand it may only be possible by moving diagonally (applying $2$ or more movements of different axis at the same time-such as $x-1$ and $y-1$).
I have asked my maths teacher and some of my friends but I am sure there must be a solution.

If you are exactly in the middle and can only go in the 6 directions, it is like being in a cube with an odd number of sides (in order to have an exact middle cube). If you colored the cubes alternately black and white with the middle one white, then you are in the white cube and there are one more black cubes than there are white cubes (counting the middle cube.) (This would be for a 3 x 3 x 3 or a 7 x 7 x 7 cube.) This is because an odd sided cube has n x n x n cubes which is an odd number of cubes, so there has to be more blacks than whites by 1 (or visa-versa in 5 x 5 x 5 or 9 x 9 x 9 cubes etc.) So, if you eat the white one first (the one you are in) then eat alternately black and then white cubes, you end up having to eat a white cube then there are two black cubes left and you eat one of them and then you cannot eat a white cube!
So, it is impossible as far as I can see. I need to edit my answer. If the number of units on each side is 5+4k (where k=0,1,2,...) then I think it can be done because the greater number of white squares will end up with a white one in the middle. But I think 3+4k units on each side cannot be done because of the situation I was describing. On 3+4k sided cubes the middle square is a different color than the corner squares. This one cannot be done. (If you are in the middle square and it is white and you eat it, there will be two more black squares than white.) Whereas on 5+4k sided cubes, the middle square is the same color as the corner squares and after you eat the middle square there will be the same number of squares of each color.
So, it can always be done if you break the cube into the proper number of odd units on each side. I think this is the correct answer, but there may be more complications than what I have been discussing. The 3+4k sided cubes definitely cannot be done.