Fix chat messages capturing mouse interactions for menu/formspecs

And separating chat update from "the_game" to separate function ... just a small step in order to split the_game