public bool checkIfItemIsOverlapped() { foreach (Item item in listOfItemsInInventory) { if (MyGame.CheckMouseInRect(item)) { return(true); } } return(false); }