[Solved] Factory created objects in the wrong position

Code to perform the tests.
Touch the screen calculates the positions and generates a new scheme.

Space deletes and recreates with the same parameters already calculated.

function on_input(self, action_id, action)
	if action_id == hashes.TOUCH and action.pressed then
		clear_board()
		create_board() -- Create call draw_board()
	elseif action_id == hashes.SPACE and action.pressed then
		clear_board()
		draw_board()
	end
end