implementation for the game "lines of action"