example implementation of an in-out board in ruby