moved win functions up in playBox