added winner method and tests