update2

(I'm sorry, I can't think of better names)

onTick and onMouseClicked implemented