Revert "added: if at end floor forget your direction"

This reverts commit 21a5c3855d9a489bebcf17523a023358826ceccb.
fixed cost function to forget dir at end floor
fixed cost function to forget dir at end floor
fixed cost function to remember dir at end floor