I seriously need to optimise the code for checking how bright a tile should be, bc right now, it literally freezes the game for a very spottable period of time