corrected usage of UInt var, cleaned winningstate
dont work grr