Experimenting with chess logic on Javascript.