Added some source to test pieces

Added test_pieces.c to test valid moves along with the modified
makefile.