added background and changed win check to be on dblclick