implementation of the boardgame