In court, defence lawyer Matthew Barnes said his client had been at the beach drinking with friends and went to move his car further away from the group so he could sleep.