pause function and menu created, only works with mouse atm