JavaScript Othello program usint OOP