changed "previous" to "precedent", translated some strings (hard coded, disgusting stuff), added action functions for mario
made a working algo with lots of comments; cleaned working algo