Problem: C server needs lookup table for valid events in each state
Solution: Add s_event_matrix (boolean 2D array)

(Resolves TODO task in source code comment)