different approach to tiles solver