Fixes friendly monster movements.

This is a fix for issue #1603. The core problem was the friendly_move function doesn't deduct movement points in all scenarios of movement. It would only do deductions in very specific cases. This caused an infinite move loop since it would just keep failing an action over and over.