add number count to match
solve a small bug in contest
add direction to match viewer(poor view)