First of all: Put your code in
Code:
code tags
next time

more readable.
Secondly: You haven't put an asterix behind the PANEL, like PANEL* first_pan={...}. Also are you sure that the picture "grej.pcx" really exist inside the main folder (where all your files are located)?
And thirdly: The while loop, use it inside the wizard action, not inside the main. It's more clean and properly used. Aside that, it's one big c_move orgy! I think the pc will explode when you press all buttons at the same time

. Use c_move one time after all the if-statements, and fill a vector pointer inside the if's, then call the vector with that c_move.