Fixes for Bayes and navigation

Bayes math was flipping the y values, which flipped the grid upside
down. Everything seems to work now, but navigation still doesn't get
unstuck well.