graphics update. collision detection implemented, but not working anymore.