WARNING BROKEN FIX FIRST
Added: ContainsItem function
Edited: tick handling