Implemented mouse and touch controls