added a freez function after win