includes win logic