added the flip method and the button in the board page