An engine for Pong and Wall type of games