Implement properly (hopefully) the mouse button down event in edit.c and game.c