Implemented inventory filtering

Items in the inventory can now be filtered.

Fixed bad line breaking before '&&' (currently on line 163).