Fixed game crashing when not enough space is left.