Implemented functions: disp, input, init and obstacles