Refactored setting collision rect to its own method