pretty well done but it stops working whenever i leave a level in any way