implementation of the gamelogic on BBB with sample path