added findOptimalAction
adding usable checks