returns optimal available action