Fixed memory behaviour when switching turns
Memory fix
Gif animations can now turn off lamps
Merge branches 'master' and 'gif'
Merge branches 'master' and 'memory'