added level system but with bugs