Moved the typedef out of the struct definitions
Prototypes for AI - I really wanted to do _something_