Wait to the maze generation and then use arrow keys to control to the X
Thanks for @griffpatch for your codes!