Added collision with level, and fixed all the warnings.