Implemented win/loss test

Please note that I was unable to test this on my system at the moment.
My internet connecting in my room is not consistent enough to allow me
to test on eclipse at this time.