program terminates after reaching tile 16
changed number of variables