solved the space problem for win paths