fixed problem with checking if spaces are passable concerning width/height