Refactored background grid class