added level and gamebar
basic level logic