added logic of determining the winner with two players

Signed-off-by: erikathea <ethajes@gmail.com>