(for Gili) Adding masks for collision detection