begining function to transform level to scene