#50 Begin of the level mode + fixed some bugs