rearranged update loop

rearranged update loop to allow player input during network lag