Make the types less confusing. Remove debug printf.
Use pointers instead of bitshift tricks.
Build with raylib of ncurses. Not sure about this.

This seems like a big overhead. I think I will focus on one target and
keep the possibility to work on another later.
Level read and write.
KBLE C rewrite initiated.