Added profiling code and sped up has_win