added rotate to header
corrected function name
finally got test compiling
fixed repeated functions and added test call for board