discrete states and action coding