finished touch events, simplified math