fixed bug where it wasn't declaring win; recreated the bug and fixed