board_play() should now work

Various bugs also fixed, it now compiles :)