Fix bug in Res.clear, add Res.font and a complete game for tests.