initial commit for fix branch
Fixed pointer errors
Fixed pointer errors and warnings, got removal of piece working.
Merge branch 'fixPointerErrors' into dev