add application wrapper module
remove useless spawn
don't move if there are no valid moves