fix status bar and good luck algorithm