Change size_t and unsigned to int.

Tetromino 4x4 grid can have negative index in the matrix. To avoid comparison
between int and unsigned int, use int for all integral types.
merge