added first spawn function for cubes