Added level and fixed changing level bug