Did some refactoring to make the css look nicer, still need to fix some bugs with the win method