Add algorithms to check for winner
Add test pattern

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