All of the think, draw and collision functions need to be setup here with CK_ACT_AddFunction/CK_ACT_AddColFunction, and the actions you access by CK_GetActionByName need to be added to ACTION.CK5.

Also, I'm not sold on the style change here. Personally, I prefer the opening brace on the next line.