TODO: modularize thegrid, check mouse button press object selection