modified the reverse() method by adding a counter called revCount to limited reversals; added and implemented a backFence() method specifically for handling collisions with Fence objects