let position = document.getElementById('position')
let mx
function callback(event){
mx = event.pageX
}
window.onmousemove = callback
console.log(mx)
let platform = {
x: mx - 100,
y: 575,
width: 200,
height: 25,
color: 'blue'
}