cleaned up and commented movePiece function
created new helper methods