Handy library of functions for terminal games or whatever