validAction

fun validAction(state: Int, action: Int): Boolean