Add algorithms to check for winner (1/2 done)

Signed-off-by: Silencieux Le <silencieux.le@gmail.com>