latest commit with working win logic and edited styling