Fixed some ui bugs. Fixed predictable board pattern problem.