made some fixes for the canFall() boolean.
fixes ClassCastException.