function pointers not functional but added checkLeft, checkRight, etc to header