Add randomized platform function, fix bug where player would not walk off edge.