Cleaned up initialize function and public variables with init_x and init_y