Fixed several issues related to detecting when a mass was over the plank.