code for AMPI (also CE and Lambda PI) with an apllication in Tetris