fixed flipping board bug