bug fix of createCube and createRoom methods.