added in maths to test of player is standing on object