added mouse square fuctionallity