Hurray! found the problem. There was a delimiter after the while(1) in player_action so it wasn't able to get to the functions. Thanks guys. New problem though... after the game starts, the handle_movement function crashes and I get a compiled without meshes error. Is it from the calculations? Has anyone tried converting it?