Graphics work properly now, added input.