added num_to_code functions (and vice versa to burning_plane.js