fixed bug in mouse class, also particle example