Added win feature
Added win feature
added length rspec
little refactor